package mmc.action;

import static org.lwjgl.input.Keyboard.KEY_F;
import mmc.Client;
import mmc.EngineObject;
import mmc.objects.Mob;

public class TargetTarget extends InterfaceAction {

	public TargetTarget() {
		super("TargetTarget", (String)null, KEY_F);
	}

	@Override
	public void performOnClient() {
		EngineObject help = Client.client.getScene().player.target;
		if(help != null){
			if(help instanceof Mob){
			Mob x = (Mob)help;
				if(x.target != -1){
					Client.client.getScene().player.target = Client.client.getScene().objects.get(x.target);
				}
			}
		}
	}

}
